<!-- INCLUDE sv_overall_header.html -->


<!-- IF IN_FB_IFRAME -->
	<script type="text/javascript" src="../ofc/js/json/json2.js"></script>
	<script type="text/javascript" src="../ofc/js/swfobject.js"></script>
	<script type="text/javascript">
	
	swfobject.embedSWF("../ofc/open-flash-chart.swf", "trading_chart", "680", "350", "9.0.0", "expressInstall.swf",  {"get-data":"get_trading_data"} );
	</script>
<!-- ELSE -->
	<script type="text/javascript" src="ofc/js/json/json2.js"></script>
	<script type="text/javascript" src="ofc/js/swfobject.js"></script>
	<script type="text/javascript">
	
	swfobject.embedSWF("ofc/open-flash-chart.swf", "trading_chart", "1900", "750", "9.0.0", "expressInstall.swf",  {"get-data":"get_trading_data"} );
	</script>
<!-- ENDIF -->

<!-- IF IN_FB_IFRAME -->
	<script type="text/javascript">
	swfobject.embedSWF("../ofc/open-flash-chart.swf", "visiting_user_chart", "680", "320", "9.0.0", "expressInstall.swf",  {"get-data":"get_visiting_user_data"} );
	</script>
<!-- ELSE -->		
	<script type="text/javascript">
	swfobject.embedSWF("ofc/open-flash-chart.swf", "visiting_user_chart", "1400", "400", "9.0.0", "expressInstall.swf",  {"get-data":"get_visiting_user_data"} );
	</script>
	
	<script type="text/javascript">
	swfobject.embedSWF("ofc/open-flash-chart.swf", "registering_user_chart", "1400", "400", "9.0.0", "expressInstall.swf",  {"get-data":"get_registering_user_data"} );
	</script>
<!-- ENDIF -->

<script type="text/javascript">

function ofc_ready()
{
    //alert('ofc_ready');
}

function get_trading_data()
{
    //alert( 'reading data' );
    return JSON.stringify(trading_data);
}

function get_visiting_user_data()
{
    //alert( 'reading data' );
    return JSON.stringify(visiting_user_data);
}

function get_registering_user_data()
{
    //alert( 'reading data' );
    return JSON.stringify(registering_user_data);
}

function findSWF(movieName) {
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
}
    
var trading_data = {JASON_STRING};

var visiting_user_data = {VISITING_USER_JASON_STRING};

var registering_user_data = {REGISTERING_USER_JASON_STRING};

</script>

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->


<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Transaction Number</h2> 
	</div>

<div id="trading_chart"></div>

</div>

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Visiting User Number</h2> 
	</div>

<div id="visiting_user_chart"></div>

</div>

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Registering User Number</h2> 
	</div>

<div id="registering_user_chart"></div>

</div>

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Active Users</h2> 
	</div>

	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td> Daily Active Users ({ACTIVE_DAILY_USER_NUM})</td>
		
			<td>
				<p>
				<!-- BEGIN daily_active_user_list -->
					<!-- IF daily_active_user_list.WITH_AD > 0 --> <B> <!-- ENDIF -->
					<a href="{S_QUERY_USER}&user_id={daily_active_user_list.USER_ID}">{daily_active_user_list.USERNAME}</a>, 
					<!-- IF daily_active_user_list.WITH_AD > 0--> </B> <!-- ENDIF -->
				<!-- END daily_active_user_list -->
				</p>
			</td>
		</tr>
		
		<tr>
			<td> Weekly Active Users ({ACTIVE_WEEKLY_USER_NUM})</td>
		
			<td>
				<p>
				<!-- BEGIN weekly_active_user_list -->
					<!-- IF weekly_active_user_list.WITH_AD > 0 --> <B> <!-- ENDIF -->
					<a href="{S_QUERY_USER}&user_id={weekly_active_user_list.USER_ID}">{weekly_active_user_list.USERNAME}</a>, 
					<!-- IF weekly_active_user_list.WITH_AD > 0 --> </B> <!-- ENDIF -->
				<!-- END weekly_active_user_list -->
				</p>
			</td>
		</tr>
		
		<tr>
			<td> Monthly Active Users ({ACTIVE_MONTHLY_USER_NUM})</td>
		
			<td>
				<p>
				<!-- BEGIN monthly_active_user_list -->
					<!-- IF monthly_active_user_list.WITH_AD > 0 --> <B> <!-- ENDIF -->
					<a href="{S_QUERY_USER}&user_id={monthly_active_user_list.USER_ID}">{monthly_active_user_list.USERNAME}</a>, 
					<!-- IF monthly_active_user_list.WITH_AD > 0 --> </B> <!-- ENDIF -->
				<!-- END monthly_active_user_list -->
				</p>
			</td>
		</tr>

		
	</table>	

</div>

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2> Users Settings </h2> 
	</div>

	<table border="0" cellpadding="5" cellspacing="5">
		
		<tr>
			<td> AD </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> Not Allow AD (*) </td>	<td> {NUM_USER_NOT_ALLOW_AD}  </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> Allow AD </td>	<td> {NUM_USER_ALLOW_AD} </td>	
		</tr>		
		
		<tr>
			<td> Belief </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> Empty (*)</td>	<td> {NUM_USER_WITH_EMPTY_BELIEF}  </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> Not Empty </td>	<td> {NUM_USER_WITH_BELIEF} </td>	
		</tr>		
		
		<tr>
			<td> News Max Number </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 0 </td>	<td> {NUM_USER_NEWS_MAX_0}  </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 5 </td>	<td> {NUM_USER_NEWS_MAX_5} </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 10 (*)</td>	<td> {NUM_USER_NEWS_MAX_10} </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 20 </td>	<td> {NUM_USER_NEWS_MAX_20} </td>	
		</tr>		
		
		<tr>
			<td> Market Info </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 0 </td>	<td> {NUM_USER_MARKET_INFO_0}  </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 1 (*)</td>	<td> {NUM_USER_MARKET_INFO_1} </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 2 </td>	<td> {NUM_USER_MARKET_INFO_2} </td>	
		</tr>
		
		
		<tr>
			<td> Delegation List Info </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 0 (*)</td>	<td> {NUM_USER_DELEGATION_LIST_INFO_0}  </td>	
		</tr>		
		<tr>
			<td>  </td>	 <td> 1 </td>	<td> {NUM_USER_DELEGATION_LIST_INFO_1} </td>	
		</tr>	
		
		
		
	</table>	
	
	

</div>
		
			
<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Query User Actions</h2> 
	</div>

	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_USER_NAME}</p></td>
			<td><p>Query {L_SV_USER_NAME}</p></td>			
			<td><p>Time</p></td>
		</tr>
		<!-- BEGIN query_user_list -->
		<tr>
			<td><p><a href="{S_QUERY_USER}&user_id={query_user_list.QUERYER_ID}">{query_user_list.QUERYER_USERNAME}</a></p></td>
			<td><p><a href="{S_QUERY_USER}&user_id={query_user_list.QUERYEE_ID}">{query_user_list.QUERYEE_USERNAME}</a></p></td>
			<td><p>{query_user_list.TIME}</p></td>
		</tr>
		<!-- END query_user_list -->
		
	</table>	
</div>


<!-- INCLUDE sv_overall_footer.html -->